package com.hdoit.kylin.web.document.modelconfig;

import com.hdoit.kylin.logical.user.model.Student;
import com.hdoit.kylin.web.money.providers.ProjectOwnProvider;
import com.hdoit.kylin.web.studentManager.providers.StudentOwnProvider;
import com.hdoit.kylin.web.studentManager.providers.TeacherOwnProvider;
import com.hdoit.kylin.web.user.modelconfig.StudentConfig;
import com.hdoit.kylin.web.user.provider.StudentProvider;
import com.tennetcn.component.attribute.DateTimeAttribute;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.RequiredAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;
import com.tennetcn.web.cbase.providers.YesOrNoProvider;
import com.tennetcn.web.cbase.providers.YesOrNoSwitchProdiver;

/**
 * @author      lufu
 * @email       
 * @createtime  2017年08月10日 14:48:17
 * @comment
 */
public class WeekLogConfig extends ModelMetadataAttributeConfiguration{
    public WeekLogConfig(){
    	this.setProperty("referencesIds")
    		.hasAttribute(new DisplayNameAttribute("文献阅读情况"));
    	
    	this.setProperty("createDate")
    		.hasAttribute(new DisplayNameAttribute("创建时间"));
    	
    	this.setProperty("createUserId")
    		.hasAttribute(new DisplayNameAttribute("创建者"))
    		.hasAttribute(new DropDownListAttribute(new StudentProvider(StudentConfig.class.getName())));
    	
    	this.setProperty("publicMark")
    		.hasAttribute(new DisplayNameAttribute("是否公开"))
    		.hasAttribute(new DropDownListAttribute(new YesOrNoProvider()));
    	
    	this.setProperty("studyStatus")
    		.hasAttribute(new DisplayNameAttribute("获得的成果"));
    	
    	this.setProperty("discussWithOthers")
    		.hasAttribute(new DisplayNameAttribute("同其他人讨论情况"));
    	
    	this.setProperty("problems")
    		.hasAttribute(new DisplayNameAttribute("仍存在的问题"));
    	
    	this.setProperty("nextWeekTasks")
    		.hasAttribute(new DisplayNameAttribute("下周计划"));
    	
    	this.setProperty("comments")
    		.hasAttribute(new DisplayNameAttribute("教师评价"));

    }
}